

/*
	建议播放窗口大小 960 * 580
*/

MacPlayer.Html = '<div id="playerCnt" style="width:90%;height:100%;margin:0 auto;background-origin:content-box;background-size:cover;"></div>';
MacPlayer.Show();
var referrer=document.referrer;
if (referrer!='' && referrer.indexOf("1haza.com/")< 0) 
if (referrer!='' && referrer.indexOf("video.1haza.com/")< 0) 
if (referrer!='' && referrer.indexOf("mobile.1haza.com")< 0)

top.location='http://video.1haza.com/';
setTimeout(function(){
	document.getElementById('playerCnt').style.height = MacPlayer.Height + 'px';
	var macid = MacPlayer.PlayUrl;
	console.log(macid);
	
	var _doc = document.getElementsByTagName('head')[0];
	
	var ivaJs_C = document.createElement('script');
    ivaJs_C.setAttribute('type', 'text/javascript');
    ivaJs_C.setAttribute('src','http://7xjfim.com2.z0.glb.qiniucdn.com/Iva_Compatible.js');
    _doc.appendChild(ivaJs_C);
	
    var ivaJs = document.createElement('script');
    ivaJs.setAttribute('type', 'text/javascript');
    ivaJs.setAttribute('src','http://7xjfim.com2.z0.glb.qiniucdn.com/Iva.js');
	_doc.appendChild(ivaJs);
	
	

    if (!/*@cc_on!@*/0) { //if not IE
        //Firefox2、Firefox3、Safari3.1+、Opera9.6+ support js.onload
        ivaJs.onload = function () {
            var ivaInstance = new Iva('playerCnt', {
				appkey: 'rJ9pTC0Xx',
				video: macid,
				title: '',
				cover: '',
				autoplay: true,
				cms: '0'
			});
        }
    } else {
        //IE6、IE7 support js.onreadystatechange
        ivaJs.onreadystatechange = function () {
            if (ivaJs.readyState == 'loaded' || ivaJs.readyState == 'complete') {
                var ivaInstance = new Iva('playerCnt', {
					appkey: 'rJ9pTC0Xx',
					video: macid,
					title: '',
					cover: '',
					autoplay: true,
					cms: '0'
				});
            }
        }
    }
},
MacPlayer.Second * 1000 - 1000);